import { fetchToken } from '@/utils/fetch'
import { fetchProxy } from '@/utils/proxyFetch'

const iss_url = '/iss-service'
//    ============获取停车场类型============
export function parkingType() {
	return fetchToken({
		url: `${iss_url}/dic/parking_type`,
    method: 'get'
	})
}
//    ============获取审核状态============
export function audtiStatus() {
	return fetchToken({
		url: `${iss_url}/dic/audti_status`,
    method: 'get'
	})
}
//    ============获取出入库单状态============
export function inoutboundStatus() {
  return fetchToken({
    url: `${iss_url}/dic/inout_bound_status`,
    method: 'get'
  })
}
//    ============获取业务类型============
export function businessType() {
  return fetchToken({
    url: `${iss_url}/dic/business_type`,
    method: 'get'
  })
}
/* ============获取监管方案============*/
export function supervisePlan() {
  return fetchToken({
  url: '/iss-service/dic/vehicle_supervision_plan',
  method: 'get'
  })
}

//    ============获取品牌（车e估）============
export function cheeguBrand() {
	return fetchProxy({
		url: '/CARDB.getMasterBrand',
    method: 'get',
    params: {token: 'EEDFB5DB811A4155805616971C3C6019'}
	})
}

//    ============获取车系（车e估）============
export function cheeguSeries(masterid) {
  return fetchProxy({
    url: '/CARDB.getSerial',
    method: 'get',
    params: {
      masterid: masterid,
      token: 'EEDFB5DB811A4155805616971C3C6019',
      keyword: ''
    }
  })
}

//    ============获取车型（车e估）============
export function cheeguModel(serialid) {
  return fetchProxy({
    url: '/CARDB.getModel',
    method: 'get',
    params: {
      serialid: serialid,
      token: 'EEDFB5DB811A4155805616971C3C6019',
      keyword: ''
    }
  })
}